# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=opensmtpd-filter-rspamd
_pkgname=filter-rspamd
pkgver=0.1.6
pkgrel=1
pkgdesc="OpenSMTPD filter integration for Rspamd"
url="https://github.com/poolpOrg/filter-rspamd"
arch="all"
license="ISC"
options="!check" # No test suite
depends="opensmtpd"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/poolpOrg/filter-rspamd/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	go build
}

package() {
	install -Dm 0555 "$_pkgname-$pkgver" "$pkgdir"/usr/lib/opensmtpd/"$_pkgname"
}

sha512sums="d452143902c713f2d277651e8322b6da00d8531f32b8c78f7c945b4e9302083df2ad419614ed2a9d4d31270d8edd0c4e9ac8a11c9f470fcf8364347e101ac456  opensmtpd-filter-rspamd-0.1.6.tar.gz"
